export default {
  data() {
    return {
      iframeHeight: 0
    };
  },
  mounted() {
    this.setIframeHeight();
    window.addEventListener('resize', this.setIframeHeight);
  },
  beforeUnmount() {
    window.removeEventListener('resize', this.setIframeHeight);
  },
  methods: {
    setIframeHeight() {
      this.iframeHeight = window.innerHeight-100;
    }
  }
}
